package com.laicunba.service.fuiou;

import java.util.List;

import com.laicunba.service.fuiou.FuiouStatusQueryService.Result;

/**
 * 富友,代收代付状态查询接口
 * 
 * @author why
 *
 */
public interface FuiouStatusQueryService {
	/**
	 * 代付业务
	 */
	final static String BIZ_OUT = "AP01";

	class Result {
		private String orderno;
		private String accntno;
		private String accntnm;
		private String amt;
		private String entseq;
		private String memo;
		private String state;
		private String result;
		private String reason;

		@Override
		public String toString() {
			return "Result [orderno=" + orderno + ", accntno=" + accntno + ", accntnm=" + accntnm + ", amt=" + amt + ", entseq=" + entseq + ", memo=" + memo + ", state=" + state + ", result=" + result + ", reason=" + reason + "]";
		}

		public String getOrderno() {
			return orderno;
		}

		public String getAccntno() {
			return accntno;
		}

		public String getAccntnm() {
			return accntnm;
		}

		public String getAmt() {
			return amt;
		}

		public String getEntseq() {
			return entseq;
		}

		public String getMemo() {
			return memo;
		}

		public String getState() {
			return state;
		}

		public String getResult() {
			return result;
		}

		public String getReason() {
			return reason;
		}

		public void setOrderno(String orderno) {
			this.orderno = orderno;
		}

		public void setAccntno(String accntno) {
			this.accntno = accntno;
		}

		public void setAccntnm(String accntnm) {
			this.accntnm = accntnm;
		}

		public void setAmt(String amt) {
			this.amt = amt;
		}

		public void setEntseq(String entseq) {
			this.entseq = entseq;
		}

		public void setMemo(String memo) {
			this.memo = memo;
		}

		public void setState(String state) {
			this.state = state;
		}

		public void setResult(String result) {
			this.result = result;
		}

		public void setReason(String reason) {
			this.reason = reason;
		}

	}

	List<Result> query(String busicd, String startdt, String enddt);

	String queryForXmlResult(String busicd, String startdt, String enddt);

	List<Result> parseXMLResult(String xmlResult);
}
